const static = require('koa-static')
const path = require('path')

function serverPluginServeStatic({app, root}) {
  // vite 在哪里运行就在哪里启动静态服务
//   console.log(root);
  app.use(static(root))
  app.use(static(path.join(root, 'public')))
}

exports.serverPluginServeStatic = serverPluginServeStatic